<?php

// required
	define('ROOT_PATH', dirname(__FILE__));

// kernel file
	include ROOT_PATH.'/kernel/kernel.php';

// page header
	include ROOT_PATH.'/kernel/lib/tpl/_header.php';

// page content
	if($cosa->system('installed')) {
		if($user->isLoggedIn()) include ROOT_PATH.'/kernel/lib/tpl/main.php';
		else include ROOT_PATH.'/kernel/lib/tpl/login.php';
	} else include ROOT_PATH.'/kernel/lib/tpl/install.php';

// page footer
	include ROOT_PATH.'/kernel/lib/tpl/_footer.php';

?>